package b2.config
{
	public class StatusConfig
	{
		//状态索引
		public var index:int = 0;
		//奖励物品索引
		public var objectIndex:int;
		//等级
		public var levelConfigs:Array;
		
		public var statusImage:String;
		
		public function StatusConfig(statusXML:XML)
		{
			index = statusXML.index;
			objectIndex = statusXML.objectIndex;
			levelConfigs = new Array();
			statusImage = statusXML.statusImage;
			for (var i:int = 0; i < statusXML.level.length(); i++)
			{
				var levelConfig:Object = new Object();
				levelConfig.requiredValue = statusXML.level[i].requiredValue;
				levelConfig.bonus = statusXML.level[i].bonus;
				levelConfigs.push(levelConfig);
			}
		}
	}
}